Zoom and Street View controls position#222
Zoom and Street View controls position#222Sh3nr0n wants to merge 3 commits intofullstackreact:masterfrom
Conversation
Added the capability to pass the "streetViewControlOptions" and "zoomControlOptions" from the google API to change the position of these controls on the map using the predefined "ControlPosition".
Zoom and Street View controls
|
Hey, Just needed to move the default controls elsewhere on the map. Thanks for this lib anyway :) |
|
Thanks, I've manually put this in as well. Please pull this into the repo along with other missing options! |
|
ControlOptions is not working for me... <Map |
|
//Its not working any other way |
Added the capability to change the default position of the zoom control and street view control.
Control names are those from the google-maps API.
Example : Add them to the map component and pass them an object as follow :
<Map
google={this.props.google}
zoom={5}
style={{ height: '80%' }}
initialCenter={{lat: 47.4840791,lng: 5.683411}}
zoomControl={true}
streetViewControl={true}
streetViewControlOptions={{position: google.maps.ControlPosition.LEFT_TOP}}
zoomControlOptions= {{position :google.maps.ControlPosition.LEFT_TOP}}